package com.lego.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Orders {
	private int orderId;
    private String orderNumber;
    private int sellerId;
    private int userId;
    private int goodsId;
    private int totalQuantity;
    private double totalAmount;
    private Date orderTime;
    private String receivingAddress;
    private Date deliveryTime;
    private String orderStatus;
	public int getOrderId() {
		return orderId;
	}
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
	public String getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	public int getSellerId() {
		return sellerId;
	}
	public void setSellerId(int sellerId) {
		this.sellerId = sellerId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}
	public int getTotalQuantity() {
		return totalQuantity;
	}
	public void setTotalQuantity(int totalQuantity) {
		this.totalQuantity = totalQuantity;
	}
	public double getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(double totalAmount) {
		this.totalAmount = totalAmount;
	}
	public Date getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}
	public String getReceivingAddress() {
		return receivingAddress;
	}
	public void setReceivingAddress(String receivingAddress) {
		this.receivingAddress = receivingAddress;
	}
	public Date getDeliveryTime() {
		return deliveryTime;
	}
	public void setDeliveryTime(Date deliveryTime) {
		this.deliveryTime = deliveryTime;
	}
	public String getOrderStatus() {
		return orderStatus;
	}
	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}
	
	public Orders(String orderNumber, int sellerId, int userId, int goodsId, int totalQuantity,
			double totalAmount,String orderStatus) {
		this.orderNumber = orderNumber;
		this.sellerId = sellerId;
		this.userId = userId;
		this.goodsId = goodsId;
		this.totalQuantity = totalQuantity;
		this.totalAmount = totalAmount;
		this.orderStatus = orderStatus;
	}
	
	public Orders() {
		
	}
	@Override
	public String toString() {
		return "Orders [orderId=" + orderId + ", orderNumber=" + orderNumber + ", sellerId=" + sellerId + ", userId="
				+ userId + ", goodsId=" + goodsId + ", totalQuantity=" + totalQuantity + ", totalAmount=" + totalAmount
				+ ", orderTime=" + orderTime + ", receivingAddress=" + receivingAddress + ", deliveryTime="
				+ deliveryTime + ", orderStatus=" + orderStatus + "]";
	}
    
}
